home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 13
/
013.d81
/
lang translator
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
897b
|
31 lines
10 printchr$(147);chr$(144):poke53280,14:poke53281,6
40 print"languagetranslator by jim lockridge"
42 print"type 'end' to exit to this menu."
50 print"choose one:"
60 print"[160] 1 -- english to foreign"
70 print"[160] 2 -- foreign to english"
75 print"[160] 3 -- exit program"
80 input"which ";a
90 ifa<1ora>3thenprint"1 , 2 , or 3 please":fortt=1to2000:next:run
95 ifa=3then63100
100 input"word for translation";w$
105 ifw$="end"thenrun
120 ifa=2then300
140 readaa$:readbb$
150 ifaa$=w$thenprintchr$(5);bb$:restore:fortt=1to4000:next:run
160 ifaa$="ttttt"thenprintw$;" not in file":fortt=1to2000:next:run
170 goto140
300 readaa$:readbb$
310 ifbb$=w$thenprintchr$(5);aa$:restore:fortt=1to4000:next:run
320 ifaa$="ttttt"thenprintw$;" not in file":fortt=1to2000:next:run
330 goto300
5000 data english word, foreign word
60000 datattttt,ttttt
63000 rem connect back to l.s.
63010 print"[147]would you like to try again?"
63020 poke198,0:wait198,1:geta$:ifa$<>"y"anda$<>"n"thenpoke53280,rnd(1)*15:goto63020
63030 ifa$="y"thenrun
63040 :
63100 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
63110 poke631,13:poke632,13:poke198,2:end